package graduation.project.factory;

import graduation.project.testcase.strategy.TestSetGenerator;

public class TestSetGenFactory {
	
	private String packageName = "graduation.project.testcase.strategy.";
	
	public TestSetGenerator createTestSetGen(String testSetStrategy){
		
		TestSetGenerator tsg;
		try{
			Class c = Class.forName(packageName + testSetStrategy + "Generator");
			tsg = (TestSetGenerator) c.newInstance();
		}catch(Exception e){
			System.out.println("No Class: " + testSetStrategy + "Generator");
			tsg = null;
		}
		
		return tsg;
	}
}
